package com.szrt.day20170415.ch03;


import org.junit.Test;

public class PetDaoTest {
	
	
	/**
	 * 类 PetDaoImpl  中的方法   addPet
	 * @throws Exception
	 */
	@Test
	public void addPetTest() throws Exception {
		
		PetDao  dao = new  PetDaoImpl();
		
		PetShop huayun = new PetShop();
		
		Cat cat  = new Cat("咖啡猫");
		dao.addPet(huayun, cat);
		
		Dog dog = new Dog("八公");
		
		dao.addPet(huayun, dog);
		
		
		Tiger tiger = new Tiger("吊睛白额大虎");
		
		//dao.addPet(huayun, tiger);
	}

}
